#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

#include"Stack.h"

int main()
{
	ST s;
	StInit(&s);
	StPush(&s, 1);
	StPush(&s, 2);
	StPush(&s, 3);
	StPush(&s, 4);
	StPush(&s, 5);

	while (!STEmpty(&s))
	{
		printf("%d ", STTop(&s));
		StPop(&s);
	}
	printf("\n");

	StDestory(&s);

	return 0;
}